import request from "../../utils/request";

export function getYearlyPlan(params) {
  return request({
    url: "/plan/yearly/list",
    method: "get",
    params,
  });
}

export function addYearlyPlan(data) {
  return request({
    url: "/plan/yearly/add",
    method: "post",
    data,
  });
}

export function updateYearlyPlan(data) {
  return request({
    url: "/plan/yearly/update",
    method: "put",
    data,
  });
}

export function deleteYearlyPlan(data) {
  return request({
    url: "/plan/yearly/delete",
    method: "delete",
    data,
  });
}

export function updateYearlyPlanPercent(data) {
  return request({
    url: "/plan/yearly/percent/update",
    method: "put",
    data,
  });
}

export function foldYearlyPlanPercent(data) {
  return request({
    url: "/plan/yearly/fold",
    method: "put",
    data,
  });
}
